<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="g" uri="/g-tags"%>
<table>
    <thead>
        <tr>
            <th style="width:40px;"><input type="checkbox" onclick="seletes(this)"/></th>
            <th style="width:40px;"><a href="javascript:orderBy('id')">ID</a></th>
            <#list fieldList as field>
	        	<#if field.isGrid>
            <th>${field.name}</th>
            	</#if>
			</#list>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    	<s:iterator value="page.items">
        <tr>
            <td><input type="checkbox" name="ids" value="${r"${id}"}" /></td>
            <td >${r"${id}"}</td>
            <#list fieldList as field>
	        	<#if field.isGrid>
            <td>${r"${"}${field.name} ${r"}"}</td>
            	</#if>
			</#list>
            <td>
            	<g:operate title="编辑" url="${pojoInstanceName}/${pojoInstanceName}!edit.shtml?${pojoInstanceName}.id=${r"${id}"}" type="href"/>
            </td>
        </tr>
        </s:iterator>
    </tbody>
</table>
<g:page/>